
class MarketIncubationDetailModel {
  int? id;
  int? collectionId;
  String? collectionName;
  String? mainImageType;
  String? mainImageUrl;
  int? totalIssueCount;
  String? daoName;
  String? collectionDesc;
  bool? isOwn;
  dynamic? incubationPrice;
  int? incubationCycle;
  dynamic? incubationLimitPrice;
  String? dailyIncreaseType;
  dynamic? dailyIncreasePercent;
  dynamic? totalPriceLimit;
  String? incubationRule;
  dynamic buyPrice;
  dynamic incubationDays;
  int? canBuyCount;
  String? saleOrderId;
  MarketIncubationDetailModel({this.saleOrderId,this.id, this.collectionId, this.collectionName, this.mainImageType, this.mainImageUrl, this.totalIssueCount, this.daoName, this.collectionDesc, this.isOwn, this.incubationPrice, this.incubationCycle, this.incubationLimitPrice, this.dailyIncreaseType, this.dailyIncreasePercent, this.totalPriceLimit, this.incubationRule, this.buyPrice, this.incubationDays, this.canBuyCount});

  MarketIncubationDetailModel.fromJson(Map<String, dynamic> json) {
    id = json["id"];
    collectionId = json["collectionId"];
        saleOrderId = json["saleOrderId"];
    collectionName = json["collectionName"];
    mainImageType = json["mainImageType"];
    mainImageUrl = json["mainImageUrl"];
    totalIssueCount = json["totalIssueCount"];
    daoName = json["daoName"];
    collectionDesc = json["collectionDesc"];
    isOwn = json["isOwn"];
    incubationPrice = json["incubationPrice"];
    incubationCycle = json["incubationCycle"];
    incubationLimitPrice = json["incubationLimitPrice"];
    dailyIncreaseType = json["dailyIncreaseType"];
    dailyIncreasePercent = json["dailyIncreasePercent"];
    totalPriceLimit = json["totalPriceLimit"];
    incubationRule = json["incubationRule"];
    buyPrice = json["buyPrice"];
    incubationDays = json["incubationDays"];
    canBuyCount = json["canBuyCount"];
  }

  static List<MarketIncubationDetailModel> fromList(List<Map<String, dynamic>> list) {
    return list.map(MarketIncubationDetailModel.fromJson).toList();
  }

  Map<String, dynamic> toJson() {
    final Map<String, dynamic> _data = <String, dynamic>{};
    _data["id"] = id;
    _data["collectionId"] = collectionId;
     _data["saleOrderId"] = saleOrderId;
    _data["collectionName"] = collectionName;
    _data["mainImageType"] = mainImageType;
    _data["mainImageUrl"] = mainImageUrl;
    _data["totalIssueCount"] = totalIssueCount;
    _data["daoName"] = daoName;
    _data["collectionDesc"] = collectionDesc;
    _data["isOwn"] = isOwn;
    _data["incubationPrice"] = incubationPrice;
    _data["incubationCycle"] = incubationCycle;
    _data["incubationLimitPrice"] = incubationLimitPrice;
    _data["dailyIncreaseType"] = dailyIncreaseType;
    _data["dailyIncreasePercent"] = dailyIncreasePercent;
    _data["totalPriceLimit"] = totalPriceLimit;
    _data["incubationRule"] = incubationRule;
    _data["buyPrice"] = buyPrice;
    _data["incubationDays"] = incubationDays;
    _data["canBuyCount"] = canBuyCount;
    return _data;
  }

  MarketIncubationDetailModel copyWith({
    int? id,
    int? collectionId,
    String? saleOrderId,
    String? collectionName,
    String? mainImageType,
    String? mainImageUrl,
    int? totalIssueCount,
    String? daoName,
    String? collectionDesc,
    bool? isOwn,
    dynamic? incubationPrice,
    dynamic? incubationCycle,
    dynamic? incubationLimitPrice,
    String? dailyIncreaseType,
    dynamic? dailyIncreasePercent,
    dynamic? totalPriceLimit,
    String? incubationRule,
    dynamic buyPrice,
    dynamic incubationDays,
    int? canBuyCount,
  }) => MarketIncubationDetailModel(
    id: id ?? this.id,
    collectionId: collectionId ?? this.collectionId,
      saleOrderId: saleOrderId ?? this.saleOrderId,
    collectionName: collectionName ?? this.collectionName,
    mainImageType: mainImageType ?? this.mainImageType,
    mainImageUrl: mainImageUrl ?? this.mainImageUrl,
    totalIssueCount: totalIssueCount ?? this.totalIssueCount,
    daoName: daoName ?? this.daoName,
    collectionDesc: collectionDesc ?? this.collectionDesc,
    isOwn: isOwn ?? this.isOwn,
    incubationPrice: incubationPrice ?? this.incubationPrice,
    incubationCycle: incubationCycle ?? this.incubationCycle,
    incubationLimitPrice: incubationLimitPrice ?? this.incubationLimitPrice,
    dailyIncreaseType: dailyIncreaseType ?? this.dailyIncreaseType,
    dailyIncreasePercent: dailyIncreasePercent ?? this.dailyIncreasePercent,
    totalPriceLimit: totalPriceLimit ?? this.totalPriceLimit,
    incubationRule: incubationRule ?? this.incubationRule,
    buyPrice: buyPrice ?? this.buyPrice,
    incubationDays: incubationDays ?? this.incubationDays,
    canBuyCount: canBuyCount ?? this.canBuyCount,
  );
}